﻿
<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>复合</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <script src="~/js/layui/layui.js"></script>
    <link href="~/js/layui/css/layui.css" rel="stylesheet" />
    <link href="~/X-admin/css/xadmin.css" rel="stylesheet" />
    <script src="~/X-admin/js/jquery.min.js"></script>
    <script src="~/X-admin/js/xadmin.js"></script>
    <script src="~/js/framework/sysframework.js"></script>
    <script src="~/js/framework/commonjs.js"></script>
</head>
<body>
    <ul lay-bar="disabled" class="mWebBanner" id="mWebBanner">
        <li class="layui-nav-item" style="float:left;">
            <button id="btn-Save" type="button" name="btn_update" onclick="SavePlanGYData('dForm')" class="buttonCss">
                <i class="layui-icon" style="margin-right:3px">&#x1005;</i>保存数据
            </button>
        </li>
    </ul>
    <div id="planDiv">
    </div>
    <div class="layui-card" >
        <div class="layui-card-body" style="padding-top:3%">
            <div class="layui-card-body" id="layui-table-main">
                <table class="layui-hide" id="list" lay-filter="list"></table>
            </div>
            <form id="dForm" class="layui-form layui-col-space5" lay-filter="form-filter">

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                           复合宽度
                        </div>
                        <input type="text" id="fhkd" name="fhkd" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                            网线辊
                        </div>
                        <input type="text" id="wxg" name="wxg" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                            计划米数
                        </div>
                        <input type="text" id="gxNum" name="gxNum" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            复合要求
                        </div>
                        <input type="text" id="fhyq" name="fhyq" class="layui-input" style="width:400%">
                        @*<textarea id="fhyq" name="fhyq" placeholder="请输入内容" class="layui-textarea" style="width:550%"></textarea>*@
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            胶水型号
                        </div>
                        <input type="text" id="jsxh" name="jsxh" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                          胶水批次号
                        </div>
                        <input type="text" id="jspch" name="jspch" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                            胶水使用克数
                        </div>
                        <input type="text" id="jssyks" name="jssyks" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                  
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            固化剂型号
                        </div>
                        <input type="text" id="ghjxh" name="ghjxh" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                           固化剂批次号
                        </div>
                        <input type="text" id="ghjpch" name="ghjpch" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                            涂胶使用克数
                        </div>
                        <input type="text" id="jssyks" name="jssyks" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            注意事项
                        </div>
                        <input type="text" id="fhzysx" name="fhzysx" class="layui-input" style="width:400%">
                        @*<textarea id="fhzysx" name="fhzysx" placeholder="请输入内容" class="layui-textarea" style="width:550%"></textarea>*@
                    </div>

                </div>

                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            成品米数
                        </div>
                        <input type="text" id="cpms" name="cpms" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:2%">
                        <div class="layui-input-prefix">
                            入固化室时间
                        </div>
                        <input type="text" id="rghssj" name="rghssj" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:2%">
                        <div class="layui-input-prefix">
                            出固化室时间
                        </div>
                        <input type="text" id="cghssj" name="cghssj" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            固化时间
                        </div>
                        <input type="text" id="ghsj" name="ghsj" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:2%">
                        <div class="layui-input-prefix">
                            内膜使用重量
                        </div>
                        <input type="text" id="nmsyzl" name="nmsyzl" class="layui-input" style="width:300%">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            剩膜重量
                        </div>
                        <input type="text" id="smzl" name="smzl" class="layui-input" style="width:400%">
                    </div>
                </div>

                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            涂胶辊温度
                        </div>
                        <input type="text" id="tujiaogun" name="tujiaogun" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                           复合钢辊温度
                        </div>
                        <input type="text" id="fuheganggun" name="fuheganggun" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:2%">
                        <div class="layui-input-prefix">
                            产品材质
                        </div>
                        <input type="text" id="cpcz" name="cpcz" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                          室内温度
                        </div>
                        <input type="text" id="shineiwendu" name="shineiwendu" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                           室内湿度
                        </div>
                        <input type="text" id="shineishidu" name="shineishidu" class="layui-input">
                    </div>

                </div>
                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                         复合要求
                        </div>
                        @* <input type="text" id="fhyq" name="fhyq" class="layui-input" style="width:400%"> *@
                        <textarea id="fhyq" name="fhyq" placeholder="请输入内容" class="layui-textarea" style="width:550%"></textarea>
                    </div>

                </div>
                <div class="layui-form-item">

                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                           注意事项
                        </div>
                        @* <input type="text" id="fhzysx" name="fhzysx" class="layui-input" style="width:400%"> *@
                        <textarea id="fhzysx" name="fhzysx" placeholder="请输入内容" class="layui-textarea" style="width:550%"></textarea>
                    </div>

                </div>



                <input type="hidden" id="plCode" name="plCode">
                <input type="hidden" id="gxCode" name="gxCode" value="FH">
            </form>
        </div>
    </div>

</body>

</html>
<script src="~/js/sysweb/planjs.js"></script>

<script>

    var plCode = "", isRead = "0";

    $(function () {
        plCode = getUrlVariable("plCode");
        isRead = getUrlVariable("isRead");
        $("input[ name='plCode']").val(plCode);

        if (isRead == "1")
            $('#mWebBanner').hide();

        loadGyFormData(plCode, "FH");
        loadGyMaterial();
    })
    var czRow = "";
    /**
    * 存货选择
    * **/
    function chooseProduct(rowNo) {
        czRow = rowNo;
        let url = "../Basic/SelectInventory?isSingle=0";
        InfoOpenPage(url, "存货选择", "95%", "90%");
    }
    function getChildPar(pars) {
        if (pars != undefined) {
            $("input[ name='fhczName"+czRow+"']").val(pars[0].proName);
            $("input[ name='fhczName" + czRow + "']").attr('readonly', true);
            $("input[ name='fhczCode" + czRow + "']").val(pars[0].proCode);
            $("input[ name='spec" + czRow + "']").val(pars[0].spec);
            $("input[ name='spec" + czRow + "']").attr('readonly', true);
        }
    }

    function loadGyMaterial() {
        var json = {
            plCode: plCode,
            gxCode: "FH"
        }
        layui.use('table', function () {
            var dUrl = "../Plan/GetDataList?dataType=gxzym&condition=" + JSON.stringify(json);
            var table = layui.table;
            table.render({
                elem: '#list'

                , cols: [[ //标题栏

                    { field: 'proName', align: 'center', title: '材料名称', width: '20%' }
                    , { field: 'spec', align: 'center', title: '材料规格', width: '18%' }
                    , { field: 'zyNumber', align: 'center', title: '数 量', width: '12%' }

                ]], done: function (res, curr, count) {


                }
                //   , height: $(document).height() - $('#list').offset().top - 20
                , url: dUrl
                , skin: 'row' //表格风格
                , even: true
                , page: { layout: ['count', 'prev', 'page', 'next', 'skip', 'limit'], groups: 1, first: false, last: false }
                , page: false //是否显示分页
                , limits: [20, 35, 50]
                , limit: 20 //每页默认显示的数量
                , id: "tData"
            });


        });

    }




</script>

